package com.workManager.vo;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Thinkpad on 2017/1/12 0012.
 */
public class CurrentUserVO implements Serializable {


    /**用户账号*/
    private String loginCode;


    /**用户ID*/
    private Integer uid;




    /**用户名*/

    private String userName;

    /**用户密码*/

    private  String password;

    /**用户根部门*/
    private List<String> rootDeptId;

    /**角色列表*/
    private List<String> roleId;


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /**
     *
     * @Title: isAdmin
     * @Description: 是否超级管理员
     * @param @return
     * @return boolean
     * @author xucan
     * @throws
     */
    public boolean isAdmin(){
        return roleId.contains("1");
    }

    /**
     *
     * @Title: isEntMgr
     * @Description: 是否企业管理员
     * @param @return
     * @return boolean
     * @author xucan
     * @throws
     */
    public boolean isEntMgr(){
        return roleId.contains("2");
    }





    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public List<String> getRootDeptId() {
        return rootDeptId;
    }

    public void setRootDeptId(List<String> rootDeptId) {
        this.rootDeptId = rootDeptId;
    }

    public List<String> getRoleId() {
        return roleId;
    }

    public void setRoleId(List<String> roleId) {
        this.roleId = roleId;
    }

    public String getLoginCode() {return loginCode;}

    public void setLoginCode(String loginCode) {this.loginCode = loginCode;}

    public Integer getUid() {return uid;}

    public void setUid(Integer uid) {this.uid = uid;}




}
